-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proxy_* params were removed from class apt #443
Conversation
@@ -5,6 +5,8 @@ | |||
$options = $::apt::ppa_options, | |||
$package_name = $::apt::ppa_package, | |||
$package_manage = false, | |||
$proxy_host = undef, | |||
$proxy_port = 8080, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mmm, I've started disliking having multiple variables that are an obvious pair/entity as multiple switches on the class and instead have taken to doing something like this:
class apt::params {
$proxy = { 'host': undef, 'port': 8080 }
}
define apt::ppa (
$proxy = {}
) {
$_proxy = merge($apt::proxy, $proxy)
}
This allows the user to still only specify proxy => { 'host': '127.0.0.1' }
and get the port for free.
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I've just been doing too much of non-Ruby/Puppet as of late. I meant hash rockets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, cool, just wanted to make sure I didn't miss something new :) I'll get this updated.
8184376
to
16d9560
Compare
Mmm, we actually have no tests covering this change. |
Add them to PPA since they were being used there, and add a placeholder example for setting up the proxy files.
16d9560
to
3e44b68
Compare
proxy_* params were removed from class apt
Add them to PPA since they were being used there, and add a placeholder
example for setting up the proxy files.